package rocky.freemanagementsystemserver.Entity

import java.util.*
import javax.persistence.*


@Entity
@Table(name = "User", uniqueConstraints = [UniqueConstraint(columnNames = arrayOf("name"))])
class User : BaseEntity() {

    @Column(nullable = false)
    var name: String? = null

    var password: String? = null

    @OneToMany
    var roles: List<Role>? = null

}